  function ajaxwook(url,web){
                  // 原始参数
                    var handler = null;
                    var page = 1;
                    var isLoading = false;
                    var apiurl=url;
                    var options = {
                        autoResize: true, 
                        container: $('#tiles'),
                        offset: 5,
                        itemWidth: 210
                    }
                    //异步请求数据动态创建元素
                    function loadData() {
                    isLoading = true;
                        $('#loaderCircle').show();
                        $.post(apiurl,{page:page},function(data){
                            
                            isLoading = false;
                            $('#loaderCircle').hide();
                            page++;
                             //
                            var html = '';
                           var dat=eval(data);
                           
                               for(var i=0; i<dat.length; i++) {
                                var  image = dat[i];                        
                              
                                html += '<li>';
                                html+='<div class="ajax_title">';
                                html+='<div class="zhuancai" style="height:30px;z-index:10;position:absolute">';
                                html+='<span cid="'+image.cid+'" name="a_zhuancai" class="ajax_anniu" >转采</span>';
                                html+='<span name="a_xihuan" class="ajax_anniu" >喜欢</span>';
                                html+='<span name="a_pinglun" class="ajax_anniu" >评论</span>';
                                html+='</div>'
                                html+='<div>';
                                html+='<a href="'+CONTROL+'/img_info/cid/'+image.cid+'">';
                                html+= '<img name="'+image.cid+'" src="'+web+'/'+image.img+'" class="ajax_img"   width="180" style="margin:0 auto;margin-top:8px" >';
                                html+='</a>';
                                html+= '<p>'+image.title+'</p>';
                                html+='<div class="ajax_tit">';
                                html+='<p>'+image.uid+'</p>';
                                html+='</div>';
                                html+= '</li>';
                                  
                            }
                     
                          $('#tiles').append(html);
                            applyLayout();
           
      
                        },"text");
                    }
                //事件滚动条到达一定地点
                    function onScroll(event) {
                       if(!isLoading) {
                             var closeToBottom = ($(window).scrollTop() + $(window).height() > $(document).height() - 100);
                              if(closeToBottom) {
                                loadData();
                            }
                        }
                    }
                 $(document).ready(new function() {
                        $(window).bind('scroll', onScroll);
                        loadData();
                    }); 
                    
                    
                    function applyLayout() {
                      
                       if(handler) handler.wookmarkClear();
                        handler = $('#tiles li');
                        handler.wookmark(options);
                    };
    
                   
                   
                        } 


